package net.oschina.app.ui.activity.me;

import net.oschina.app.R;
import net.oschina.app.base.BaseActivity;
import net.oschina.app.base.BasePagerAdapter;
import net.oschina.app.fragment.me.messagecenterfragment.AtMeFragment;
import net.oschina.app.fragment.me.messagecenterfragment.CommentFragment;
import net.oschina.app.fragment.me.messagecenterfragment.LeaveMessageFragment;
import net.oschina.app.fragment.me.messagecenterfragment.MessageFansFragment;
import net.oschina.app.fragment.me.messagecenterfragment.PraiseMeFragment;
import net.oschina.app.util.ToolBarUtil;

public class MessageCenterActivity extends BaseActivity {


    @Override
    public int getLayoutRes() {
        return R.layout.activity_me_message_center;
    }

    @Override
    public void initView() {
        ToolBarUtil.setToolBar(this,"消息中心");

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {
        BasePagerAdapter adapter = new BasePagerAdapter(getSupportFragmentManager(),this);
        adapter.isFixTabLayout(false);
        adapter.addTab(AtMeFragment.class,"@我");
        adapter.addTab(CommentFragment.class,"评论");
        adapter.addTab(LeaveMessageFragment.class,"留言");
        adapter.addTab(MessageFansFragment.class,"粉丝");
        adapter.addTab(PraiseMeFragment.class,"赞过我");
    }
}
